package com.kmmlearn.findtime.theme

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Shapes
import androidx.compose.material3.Typography
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp

@Composable
fun MyApplicationTheme(
    darkTheme: Boolean = isSystemInDarkTheme(),
    content: @Composable () -> Unit
) {
    val colors = if (darkTheme) {
        darkColorScheme(
            primary = primaryDarkColor,
            primaryContainer = primaryLightColor,
            secondary = secondaryDarkColor,
            secondaryContainer = primaryLightColor,
            onPrimary = Color.Black,
        )
    } else {
        lightColorScheme(
            primary = primaryColor,
            primaryContainer = primaryLightColor,
            secondary = secondaryColor,
            secondaryContainer = primaryLightColor,
            onPrimary = Color.Black,
        )
    }

    MaterialTheme(
        colorScheme = colors,
        typography = typography,
        content = content
    )
}
